All Questions
9 questions
2votes
0answers
482views
Ruby Hash to XML
I've just made this "serialization" module in Ruby that takes a hash and outputs a XML string. ...
2votes
1answer
268views
Analyze Shakespeare's Macbeth parsing XML from web using Nokogiri
This is a simple Ruby program to analyze the number of lines characters speak in Shakespeare's Macbeth using Nokogiri and open-uri to parse a given url containing xml. I wrote this as practice getting ...
5votes
0answers
204views
Error Handling for XML parser
I have the following Ruby code, which parses an XML document sax style (it's a very simplified version): ...
1vote
1answer
120views
XML/HTML batch generator
As part of an exercise I've written some code to generate multiple HTML files based on information stored in a couple of XML files. I'm not really sure how much code you'd need to evaluate my function ...
5votes
2answers
69views
Adding credentialsID node to SVN location nodes
I'm new to ruby. Recently I wrote a script to add a credentialsID node to each SVN location node in each config.xml file for all ...
5votes
3answers
9kviews
5votes
3answers
3kviews
Converting KML/XML to Javascript
So, I have the boundaries of every states in the US, from the google map KML file. This KML file is actually a XML file. I'm converting this file to a JS file compatible with google map in order to ...
3votes
2answers
7kviews
Parsing data from XML using Ruby and Nokogiri
I have a method that parses XML into an array of hashes. Here is the original XML: ...
4votes
1answer
494views
filter out password in xml string
We're storing the xml communications with an external service in a text in the db and in a before_create I've got the following: ...